Base URL
https://fakeapi.in/api/postsAPI Endpoints
GET
/api/postsGet all posts
GET
/api/posts/1Get post by ID
POST
/api/postsCreate post
PUT
/api/posts/1Update post
DELETE
/api/posts/1Delete post
Example Usage
// Get all posts
fetch('https://fakeapi.in/posts')
.then(response => response.json())
.then(posts => console.log(posts));
// Create a new post
fetch('https://fakeapi.in/posts', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
title: 'My New Post',
content: 'This is the content of my post...',
authorId: 1
})
})
.then(response => response.json())
.then(post => console.log(post));Example Response
{
"id": 1,
"title": "Charisma cattus utrum dedico vespillo.",
"content": "Vindico uter voluntarius sono. Fugiat tenetur voluptatibus earum ipsa. Verumtamen aureus baiulus similique vilitas.
Sono cupiditas delicate bis ager debilito alienus ambitus ter. Anser eveniet tardus. Audio argentum possimus turbo decet.",
"author": "Jermaine Willms",
"category": "Education",
"likes": 797,
"comments": 175,
"publishedAt": "2025-10-19T13:29:54.519Z",
"createdAt": "2024-10-23T03:27:50.255Z"
}
Quick Actions
API Status
StatusOperational
Rate Limit1000 requests/hour
Response FormatJSON
